package com.zhz.stock.listener;

import com.zhz.stock.config.RabbitMQConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

// @Component
public class DemoListener {
    
    @RabbitListener(queues = RabbitMQConfig.REDUCE_STOCK_QUEUE)
    public void receiveMessage(String message) {
        
        System.out.println(message);
        
        int i = 1 / 0;
    }
}
